package net.easyjava.base.utils.mob.bean;

import net.easyjava.base.utils.mob.constants.MobConstants;
import net.easyjava.tools.BaseBean;

/**
 * Created by wenxiaoning on 16/1/29.
 */
public class ResultBean extends BaseBean {
    private static final long serialVersionUID = 4803339705076264500L;
    private String msg;//信息
    private String retCode;//结果码
    private String result;//结果

    public ResultBean() {
    }

    public ResultBean(String msg) {
        this.retCode = MobConstants.RETCODE_ERROR;
        this.msg = msg;
    }

    /**
     * 结果是否成功
     * @return
     */
    public boolean isSuccess(){
        return "200".equalsIgnoreCase(this.retCode);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
